package com.pig4cloud.ila.platform.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pig4cloud.ila.client.api.dto.ArticleDTO;
import com.pig4cloud.ila.client.api.entity.Article;
import com.pig4cloud.ila.client.api.vo.ArticleVO;
import com.pig4cloud.ila.platform.mapper.PlatformArticleMapper;
import com.pig4cloud.ila.platform.service.PlatformArticleService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author KonBAI
 * @version 1.0
 * Create by 2020/10/23 09:09
 */
@Service
@RequiredArgsConstructor
public class PlatformArticleServiceImpl extends ServiceImpl<PlatformArticleMapper, Article> implements PlatformArticleService {

    /**
     * 自定义 分页查询
     * @param articleDTO
     * @return
     */
    @Override
    public Page<ArticleVO> findPage(Page page, ArticleDTO articleDTO) {
        return baseMapper.findPage(page, articleDTO);
    }
}
